node Value
Returns a string that represents the node value.
The returned values for different types of nodes are:
ELEMENT_NODE | null | |
ATTRIBUTE_NODE | The attribute value | |
TEXT_NODE | The content of the text node | |
C_DATA_SECTION_NODE | The content of the CDATA Section | |
PROCESSING_INSTRUCTIONS_NODE | The entire node content excluding the target | |
COMMENT_NODE | The content of the comment | |
DOCUMENT_NODE | null | |
DOCUMENT_TYPE_NODE | null | |
DOCUMENT_FRAGMENT_NODE | null |
Throws
when this instance is closed
Updates the node value with the given new value
.
This method does nothing, if it is invoked for the node of one of the following types: ELEMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE.
Parameters
value
a new node value
See also
Throws
when this node is closed